package com.chinasoft.service;

import com.chinasoft.pojo.TeacherList;
import com.chinasoft.pojo.User;

import java.util.List;

public interface UserService {
    List<User> findAll();
    User login(User acc);
    User getById(String id);
    List<User> getByType(String usertype);
    boolean update(String username, String type, String endtime);
    boolean delete(String username);
    boolean addTeacher(User acc);
    boolean addUser(User user);
    boolean updateTeacher(String username, String intime);
    boolean setPassword(String username,String password);
}